/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javatowerdefense;

import com.sun.scenario.scenegraph.JSGPanel;
import com.sun.scenario.scenegraph.SGText;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.geom.Point2D;

/**
 *
 * @author José Altamirando
 */
public class BoardPanel extends JSGPanel {
    
    public Board board;
    
    public BoardPanel(){
        SGText text = new SGText();
        text.setText("Use the arrow keys to zoom in/out");
        text.setVerticalAlignment(SGText.VAlign.TOP);
        text.setFont(new Font("SansSerif", Font.PLAIN, 36));
        text.setAntialiased(true);
        text.setFillPaint(Color.BLACK);
        float tX = 200 - (float) (text.getBounds().getWidth() / 2.0);
        text.setLocation(new Point2D.Float(tX, 300));
        this.setScene(text);
    }
    
    /**
     * Returns the size of this component.
     * @return
     */
    public Dimension getPreferredSize() {
      int panelSize = (int) (200.0);
      return new Dimension(panelSize, panelSize);
    }

    
}
